package com.miyu.common.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 系统菜单
 *
 * @author longmy
 * @date 2022/02/25
 */
@Data
@Entity
@Table(name="sys_menu")
public class SysMenu {
    /** 菜单id */
    @Id
    @Column(name = "menu_id", nullable = false, length = 32)
    private String menuId;
    /** 菜单名称 */
    @Column(name = "menu_name", nullable = false, length = 50)
    private String menuName;
    /** 菜单路径 */
    @Column(name = "menu_path", nullable = true, length = 200)
    private String menuPath;
    /** 菜单组件 */
    @Column(name = "menu_component", nullable = true, length = 200)
    private String menuComponent;
    /** 是否加入显示到菜单*/
    @Column(name = "menu_hidden", nullable = true, length = 2)
    private String menuHidden;
    /** 上级菜单 sys顶级为-1 不需要后台 为空即可 */
    @Column(name = "parent_id", nullable = true, length = 32)
    private String parentId;
    /** 菜单是否停用 */
    @Column(name = "is_stop", nullable = true, length = 1)
    private  String isStop;
    /** 菜单序列号 */
    @Column(name = "order_num", nullable = true, length = 10)
    private  Integer orderNum;
    /** 文件所在全路径 */
    @Column(name = "path_all", nullable = true, length = 200)
    private String pathAll;
    /** 对应不同的模块 sys后台代码需要菜单级次 其余不需要菜单级次*/
    @Column(name = "menu_mod", nullable = true, length = 10)
    private String menuMod;
}
